|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--cnrg.itx.ds.LocationList
This class represents a list of locations.
| Field Summary | |
private Element |
m_current
|
private Element |
m_head
|
private Element |
m_tail
|
| Constructor Summary | |
LocationList()
Default constructor |
|
LocationList(LocationList newLocationList)
Copy constructor |
|
| Method Summary | |
void |
add(Location newLocation)
Add a new element to the end of the list |
void |
add(LocationList newLocationList)
Add the given location list to the end of the list |
int |
count()
Get the number of elements. |
Location |
first()
Get the first element (also Reset to the first element position) |
Location |
getAt(int index)
Get the element at a particular position (zero-based index) |
Location |
next()
Get the next element. |
void |
removeAll()
Remove all the elements from the location list object |
void |
reset()
Reset to the first element position |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private Element m_head
private Element m_tail
private Element m_current
| Constructor Detail |
public LocationList()
public LocationList(LocationList newLocationList)
newLocationList - an input location list object| Method Detail |
public void removeAll()
public int count()
public void reset()
public Location first()
public Location next()
public void add(Location newLocation)
newLocation - the new location object to be added to the listpublic void add(LocationList newLocationList)
newLocationList - the new location list to be added to the listpublic Location getAt(int index)
index - the index of the element to be retrieved
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||